package com.beici.waterghost.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.beici.waterghost.model.user;

import java.util.List;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

public interface userMapper extends BaseMapper<user> {
    int adduser(Integer userId,String userName,String userPassword,Integer userSex,Long userPhone,String userHeader);

    @Insert("insert into user(user_open_id,user_name,user_header,user_phone,user_key) value (#{openId},#{userName},#{userHeader},#{userPhone},#{userkey})")
    int qqlogin(String openId,String userName,String userHeader,Long userPhone,String userkey);

}